home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.txt / 000185_fdc@panix.com_Sat Jul 19 15:23:16 2008.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: reader1.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: pb with OUTPUT in a script
  5. Date: Sat, 19 Jul 2008 19:23:00 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 33
  8. Message-ID: <slrng84foq.lgv.fdc@panix2.panix.com>
  9. References: <72e8cf05-4219-4d9a-8fe4-475b2fb7843e@r66g2000hsg.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix2.panix.com
  12. X-Trace: reader1.panix.com 1216495380 4413 166.84.1.2 (19 Jul 2008 19:23:00 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Sat, 19 Jul 2008 19:23:00 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15777
  17.  
  18. On 2008-07-18, cedric <cedric_libre@yahoo.fr> wrote:
  19. : I succeed to use my gsm PC-card using kermit interactively with AT
  20. : commands, but actually I need to send SMS automatically.
  21. : Here is the script I have executed :
  22. :
  23. : #/usr/bin/kermit
  24. : set line /dev/ttyS2
  25. : set speed 19200
  26. : set carrier-watch off
  27. : OUTPUT AT
  28. :
  29. : The output is :
  30. : ./premier_k: line 5: OUTPUT : commande introuvable
  31. :
  32. What version of Kermit do you have?  The OUTPUT command has been part of
  33. Kermit for... well, forever.  Furthermore "commande introuvable" is not
  34. a message from Kermit.  My guess is that the shell is executing this script,
  35. not Kermit.  You need to put a '!' after the '#' in the first line:
  36.  
  37.   #!/usr/bin/kermit
  38.  
  39. and you need to give the script file execute permission.
  40.  
  41. Furthermore, when you send commands to the modem, you have to terminate
  42. them with a carriage return:
  43.  
  44.  OUTPUT AT\13
  45.  
  46. As mark suggested, see:
  47.  
  48.   http://www.columbia.edu/kermit/ckscripts.html
  49.  
  50. - Frank